<?php
$dateA = "2011-03-02";
$dateB = "2011-03-10";

echo date("d.m.Y", $date);
?>